import * as Pinia from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import useCountStore from "./modules/count";
import userStore from './modules/user';

const pinia = Pinia.createPinia()
pinia.use(piniaPluginPersistedstate)

export const useStore = () => ({
	countStore: useCountStore(),
	userStore: userStore()
})


export default pinia 